import Vue from 'vue'
import THistory from './history'
import TEdit from './edit'

export default class {
    constructor({history,edit}){
        this.theme = {};
        if (history) {
            this.theme.history = new Vue({
                el: history,
                render: h => h(THistory)
            });
            this.history = this.theme.history.$children[0];
        }
        if (edit) {
            this.theme.edit = new Vue({
                el: edit,
                render: h => h(TEdit)
            });
            this.edit = this.theme.edit.$children[0];
        }
    }
}